package com.qf.text;

import com.qf.controller.UserController;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * projectName: Spring
 *
 * @author: MaTianWei
 * time: 2021/6/29 9:23
 * description:
 */

public class Demo {
    @Test
    public void text(){
        ApplicationContext ac = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        UserController userController = (UserController) ac.getBean("userServiceImpl");
        //System.out.println(userController.findById(2));
        System.out.println(userController);
    }
}
